package com.daxue.aopdemo.com;

import java.util.regex.Pattern;

/**
 * @author daxue0929
 * @date 2022/9/26
 */

public class Test {
    private static Pattern EMAIL_PATTERN = Pattern.compile("^\\w+([-+.]\\w+)*@\\w+([-.]\\w+)*\\.\\w+([-.]\\w+)*$");

    public static void main(String[] args) {

        boolean matches = EMAIL_PATTERN.matcher("545395502@qq.com").matches();
        if (!matches) {
            System.out.println(123);
        }

    }
}
